<!-- 基本信息 -->
<template>
  <div class="baseinfo">
    <el-form label-width="100px" size="mini">
      <el-row>
        <el-col :span="5">
          <el-form-item label="工单编号">
            {{data?data.workorderCode:''}}
          </el-form-item>
          <!-- <el-form-item label="订单编号">
            {{data.orderNum}}
          </el-form-item> -->
          <el-form-item label="单位">
            {{data?data.unitOfMeasure:''}}
          </el-form-item>
          <!-- <el-form-item label="计划完工时间">
            {{7465146533132}}
          </el-form-item> -->
          <el-form-item label="创建时间">
            {{data?data.createTime:''}}
          </el-form-item>
          <el-form-item label="工单状态">
            {{data?data.workorderTypeDesc:''}}
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="物料/部件名称">
            {{data?data.productName:''}}
          </el-form-item>
          <el-form-item label="工单名称">
            {{data?data.workorderName:''}}
          </el-form-item>
          <el-form-item label=" BOM编号">
            {{data?data.batchCode:''}}
          </el-form-item>
          <!-- <el-form-item label="实际开工时间">
            {{456431152}}
          </el-form-item> -->
          <el-form-item label="创建人">
            {{data?data.createBy:''}}
          </el-form-item>
          <!-- <el-form-item label="工单进度">
            7465146533132
          </el-form-item> -->
        </el-col>
        <el-col :span="5">
          <el-form-item label="物料/部件编码">
            {{data?data.productCode:''}}
          </el-form-item>
          <el-form-item label="产品编码">
            {{data?data.parentProductCode:''}}
          </el-form-item>
          <el-form-item label="产品名称">
            {{data?data.parentProductName:''}}
          </el-form-item>
          <!-- <el-form-item label="计划数量">
            456431152
          </el-form-item>
          <el-form-item label="实际完工时间">
            7465146533132
          </el-form-item> -->
          <!-- <el-form-item label="计划标签">
            {{data.status}}
          </el-form-item> -->
        </el-col>
        <el-col :span="5">
          <el-form-item label="关联单据编号">
            {{data?data.planCode:''}}
          </el-form-item>
          <el-form-item label="规格型号">
            {{data?data.productSpc:''}}
          </el-form-item>
          <el-form-item label="实际生产数量">
            {{data?data.quantity:''}}
          </el-form-item>
          <el-form-item label="产品编码">
            {{data?data.productCode:''}}
          </el-form-item>
          <el-form-item label="生产批次">
            {{data?data.batchCode:''}}
          </el-form-item>
          <!-- <el-form-item label="附件">
            456431152
          </el-form-item> -->
        </el-col>
        <el-col :span="4">
          <el-form-item label="订单类型">
            {{data?dict.type.mes_workorder_type.filter(i => i.value == data.workorderType)[0].label:''}}
          </el-form-item>
          <el-form-item label="产品类型">
            {{data?data.itemTypeName:''}}
          </el-form-item>
          <!-- <el-form-item label="计划开工时间">
            456431152
          </el-form-item> -->
          <el-form-item label="需求日期">
            {{data?data.requestDate:''}}
          </el-form-item>
          <el-form-item label="备注">
            {{data?data.remark:''}}
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
  export default {
    name: 'BaseInfo',
    props: {
      data: {
        type: Object,
        default: () => {
          return {}
        }
      }
    },
    dicts:['mes_workorder_type'],
    data() {
      return {

      }
    },
    created() {
      console.log('baseinfo created');
    },
    methods: {

    }
  }
</script>

<style lang="scss" scoped>

</style>